From 4f830fb117fb11953a03e5eab765543884ff610b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 17 May 2014 15:32:54 -0400 Subject: [PATCH] treeview: Don't show missing images When a model is sortable, but the the column is not currently used for sorting, we want to reserve the space for showing the sort indicator. But we currently set the icon to 'missing-image', which is not great to show all over the place. So, just set the opacity to 0. --- gtk/gtktreeviewcolumn.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 55b9660b27..7449380efd 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -1023,6 +1023,11 @@ gtk_tree_view_column_update_button (GtkTreeViewColumn *tree_column) else gtk_widget_hide (arrow); + if (priv->show_sort_indicator) + gtk_widget_set_opacity (arrow, 1.0); + else + gtk_widget_set_opacity (arrow, 0.0); + /* It's always safe to hide the button. It isn't always safe to show it, as * if you show it before it's realized, it'll get the wrong window. */ if (priv->button && -- 2.30.2